/*******************************************************************************
 * Copyright (c) 2005, 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package us.gaaoc.framework.dao;

import org.hibernate.Query;
import org.hibernate.Session;

import us.gaaoc.framework.model.CaseRecordStatus;
import us.gaaoc.framework.model.Court;

/**
 * Home object for domain model class Court.
 * 
 * @see us.gaaoc.framework.model.Court
 * @author Hibernate Tools
 */
public class CourtDAOHibernate extends GenericHibernateDAO<Court, String, CourtDAO>
implements  CourtDAO{

	protected CourtDAOHibernate() {}

	public Court findCourtByUuid(String uuid) {
		//Query q = this.getSession().createQuery("from Court c where c.uuid = ? ");
        //q.setString(0, uuid);
        //return (Court)q.uniqueResult();
		return (Court)getSession().get(Court.class, uuid);
	}
}